Data shuffling in a non-uniform memory access device

ABSTRACT

A method of orchestrated shuffling of data in a non-uniform memory access device that includes a plurality of processing nodes connected by interconnects. The method includes running an application on a plurality of threads executing on the plurality of processing nodes. Data to be shuffled is identified from source threads running on source processing nodes among the processing nodes to target threads executing on target processing nodes among the processing nodes. The method further includes generating a plan for orchestrating the shuffling of the data among the all of the memory devices associated with the threads and for simultaneously transmitting data over different interconnects to a plurality of different target processing nodes from a plurality of different source processing nodes. The data is shuffled among all of the memory devices based on the plan. Shifting the data-shifting table includes rotating a first ring with respect to a second ring.

This application is a continuation of U.S. patent application Ser. No.14/944,285, filed Nov. 18, 2015 which is a continuation of U.S. patentapplication Ser. No. 14/147,912, filed Jan. 6, 2014 now U.S. Pat. No.9,274,835, the content of which are incorporated by reference herein intheir entirety.

BACKGROUND

The present disclosure relates to memory access devices and, inparticular, to data shuffling in non-uniform memory access devices.

Non-uniform memory access (NUMA) architectures have begun to emerge asarchitectures for improving processor performance, such as in multi-coreprocessors. In a NUMA architecture, each socket or processing node hasits own local memory, such as dynamic random access memory (DRAM), andeach socket or processing node is connected to the other sockets toallow each socket to access the memory of each other socket. Thus, inNUMA architectures, access latency and bandwidth vary depending onwhether a socket is accessing its own local memory or remote memory ofanother socket or processing node.

SUMMARY

Embodiments of the invention include methods, computer program products,and systems for orchestrated shuffling of data in a non-uniform memoryaccess device that includes a plurality of processing nodes that areconnected by interconnects. A method includes running an application ona plurality of threads executing on the plurality of processing nodes.Running the application includes dividing the data on each thread intopartitions according to a target thread on which the data is to beprocessed. The method further includes identifying, by the threads, datato be shuffled from source threads running on source processing nodesamong the processing nodes to target threads executing on targetprocessing nodes among the processing nodes. A plan is generated fororchestrating the shuffling of the data among the all of the memorydevices associated with the threads and for simultaneously transmittingdata over different interconnects to a plurality of different targetprocessing nodes from a plurality of different source processing nodes.The plan includes utilizing a data-shifting table to identify an orderin which the data partitions are to be transferred from the sourcethreads to the target threads. The method includes shuffling the dataamong memory devices associated with the plurality of processing nodesbased on the plan by transmitting data partitions from the plurality ofsource threads to the plurality of target threads according to thedata-shifting table and shifting the data-shifting table to associateeach source thread with a different target thread according to thedata-shifting table. Another set of data partitions is transmitted fromthe plurality of source threads to the plurality of target threads. Theplan for orchestrating the shuffling of data corresponds to a first ringincluding separate segments for each separate data partition and asecond ring located inside the first ring including separate segmentsfor each separate processing node. Shifting the data-shifting tableincludes rotating the first ring with respect to the second ring.

Additional features and advantages are realized through the techniquesof the present disclosure. Other embodiments and aspects of the presentdisclosure are described in detail herein and are considered a part ofthe claimed disclosure. For a better understanding of the disclosurewith the advantages and the features, refer to the description and tothe drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter of the disclosure is particularly pointed out anddistinctly claimed in the claims at the conclusion of the specification.The forgoing and other features, and advantages of the disclosure areapparent from the following detailed description taken in conjunctionwith the accompanying drawings in which:

FIG. 1 illustrates a non-uniform memory access system according to anembodiment of the invention;

FIG. 2 illustrates an instruction-execution table according to anembodiment of the invention;

FIG. 3 illustrates an instruction-execution table according to oneembodiment;

FIG. 4 illustrates a flow diagram of a method according to an embodimentof the invention;

FIG. 5 illustrates a computer system according to an embodiment of theinvention; and

FIG. 6 illustrates a computer-readable medium according to oneembodiment of the invention.

DETAILED DESCRIPTION

In systems employing non-uniform memory access architectures, latencyand bandwidth vary depending upon whether a processing node is accessingits own local memory or the memory associated with another processingnode. Embodiments of the invention improve latency and bandwidth byorchestrated shuffling of data partitions and processing nodes whileprocessing the data partitions.

FIG. 1 illustrates a non-uniform memory access (NUMA) system 100according to an embodiment of the invention. The system 100 includesprocessing nodes 101 a, 101 b, 101 c and 101 d. In one embodiment, eachprocessing node is a separate processing chip, a separate processorpackage or a separate processor socket. In another embodiment, at leastone of the processing nodes 101 a to 101 d is a separate processing corethan another of the processing nodes 101 a to 101 d. For example, theprocessing node 101 a may be a processing core on a first processormicrochip, the processing node 101 b may be a processing core on thesame first processor microchip, and the processing node 101 d may be aprocessing core on a separate, second processor microchip.

In the present specification and claims, the NUMA architecture ischaracterized by local memory 102 a to 102 d that is directly connectedto one of the processing nodes 101 a to 101 d and indirectly connectedto the other processing nodes 101 a to 101 d via at least oneintervening processing node 101 a to 101 d. During operation, theprocessing nodes 101 a to 101 d access data both in local memory 102 ato 102 d directly connected to the processing nodes 101 a to 101 d andin local memory 102 a to 102 d directly connected to other processingnodes 101 a to 101 d. Since multiple processing nodes 101 a to 101 dattempt to use the same interconnects simultaneously to access data,data contention occurs on the interconnects.

In the embodiment illustrated in FIG. 1, the processing node 101 a isdirectly connected to local memory 102 a via an interconnect 121; theprocessing node 101 b is directly connected to local memory 102 b via aninterconnect 122; the processing node 101 c is directly connected tolocal memory 102 c via an interconnect 123; and the processing node 101d is directly connected to local memory 102 d via an interconnect 124.In the present specification and claims, the term “directly connected”means that there is not intervening processing node 101 a, althoughembodiments of the invention encompass other intervening circuitry, suchas passive components (resistors, capacitors, etc.) and data processingor filtering elements. Conversely, the term “indirectly connected” meansthat there is at least one processing node 101 a to 101 d that islocated between the requesting processing node 101 a to 101 d and thelocal memory 102 a to 102 d that stores the data or instructions beingaccessed.

In the embodiment illustrated in FIG. 1, the processing node 101 a isindirectly connected to memory 102 b via the intervening processingnodes 101 b and 101 c. The processing node 101 c is connected to theprocessing node 101 a by the interconnect 111, and the processing node101 c is connected to the processing node 101 b by the interconnect 113.The processing node 101 a is indirectly connected to memory 102 c viathe intervening processing node 101 c; and the processing node 101 a isindirectly connected to memory 102 d via the intervening processing node101 d, and the processing nodes 101 a and 101 d are connected via theinterconnect 114.

While one configuration of interconnection among local memory 102 a to102 d and processing nodes 101 a to 101 d is illustrated in FIG. 1,embodiments of the invention encompass any configuration of data andcontrol connections among a plurality of local memory and a plurality ofprocessing nodes, where the plurality of processing nodes are directlyconnected to at least one local memory and indirectly connected to atleast one local memory via another of the plurality of processing nodes,according to a NUMA architecture. For example, in an alternativeembodiment, the processing nodes 101 a and 101 b may be connected by aninterconnect, and the processing nodes 101 c and 101 d may be connectedby an interconnect. In addition, while FIG. 1 illustrates an exampleNUMA system having four processing nodes 101 a to 101 d, embodiments ofthe invention encompass any number of processing nodes greater than one,such as six, eight, twelve, sixteen, etc.

In operation, each processing node 101 a to 101 d executes one or moreprogram or instruction threads by accessing the corresponding localmemory 102 a to 102 d. For example, the processing node 101 a executesan instruction thread by accessing instructions and data from memory 102a. However, each thread corresponding to the separate local memory 102 ato 102 c may include instructions and operand data destined for anotherthread or another processing node 101 a to 101 d, resulting in datacontention on the interconnects and processing nodes 101 a to 101 d.

For example, data from memory 102 a that is destined for a threadexecuted by the processing node 101 a must travel only a distance A viathe interconnect 121. Data from memory 102 d destined for the threadexecuted by the processing node 101 a must travel a distance B via theinterconnect 124, the processing node 101 d, and the interconnect 114.Data from memory 102 b destined for the thread executed by theprocessing node 101 a must travel a distance C via the interconnect 122,the processing node 101 b, the interconnect 113, the processing node 101c, and the interconnect 111. Accordingly, data contention would occur inthe processing node 101 b and the interconnect 122 when both theprocessing node 101 c and the processing node 101 b need to access datain the local memory 102 b. Similar data contention occurs in anyinterconnect and processing node along a path used by multipleprocessing nodes 101 a to 101 d to access data from one or more localmemory devices 102 a to 102 d.

In embodiments of the invention, an algorithm is provided to orchestratethe shuffling of data among multiple memory locations and processingnodes, where the processing nodes have non-uniform access times to themultiple memory locations. The shuffling of data is necessary to processthe data, and the orchestration of the data shuffling among all of theprocessing nodes reduces or prevents data contention and improvesperformance, including memory access times and times necessary toprocess instructions and data. In addition, the reduction of datacontention improves bandwidth in the system 100 by orchestrating thedata shuffling among processing nodes, such as instruction threads orprocessing nodes, rather than merely requesting that data associatedwith a particular processing node be transmitted to the processing nodefrom the instruction thread or processing node 101 a to 101 d thatoriginally accesses the data or instructions.

FIG. 2 illustrates an instruction-execution table 200 for shuffling datapartitions D0 to D7 among processing nodes N0 to N7. In embodiments ofthe invention, data partitions D0 to D7 may include any segment ofinstructions and/or operand data of any predefined size. The datapartitions D0 to D7 may include any segment of operand data, ornon-instruction data. The data partitions D0 to D7 may also include anycombination of instructions and non-instruction data or operand data.

Referring to FIG. 2, the instruction-execution table 200 includes anouter ring 201 and an inner ring 202. The outer ring 201 includesmultiple data partitions D0 to D7. The data partitions represent datalocated at different memory devices in a NUMA system. The inner ring 202includes multiple processing nodes N0 to N7. Each data partition isdivided into sub-partitions corresponding to data that designated to beexecuted at different processing nodes N0 to N7. For example, the datapartition D0 is divided into sub-partitions D00 to D07, to be executedon the processing nodes N0 to N7. In other words, the data partition D0is located in a first memory device directly connected to a processingnode N0. The data partition D0 includes sub-partitions D00 to D07including data to be executed by the processing node N0 and theadditional processing nodes N1 to N7.

In operation, each data partition D0 to D7 is associated with a separateprocessing node N0 to N7. The data of the data partitions D0 to D7designated to be executed by the associated nodes N0 to N7, representedas being aligned with the data partitions D0 to D7 in FIG. 2, istransmitted to the processing node N0 to N7 associated with therespective processing nodes N0 to N7. Then, the instruction-executiontable 200 is shifted to associate each data partition D0 to D7 with adifferent processing node N0 to N7. For example, in one embodiment, oneof the inner ring and the outer ring is shifted by one segment (i.e.,the data partition D0 is shifted from N2 to N3, or from N2 to N1). Then,the data of each data partition D0 to D7 designated to be transmitted tothe new processing node N0 to N7 is transmitted, and the process ofshifting and transmitting is repeated until each data partition D0 to D7has been associated with each processing node N0 to N7.

As discussed above with reference to FIG. 1, in the course of operation,a thread executing on a processing node and associated with a particularphysical memory location may determine that data, including one or bothof instructions and non-instruction data or operand data, is associatedwith another thread or should be processed by another thread that isassociated with another processing node. The algorithm represented bythe instruction-execution table 200 of FIG. 2 provides a mechanism fororchestrating the shuffling of the data among the different threads andprocessing nodes by coordinating the data shuffling process among all ofthe processing nodes. The orchestrated shuffling of FIG. 2 may beperformed simultaneously, in lock-step, or loosely, such that eachtransfer of data from one processing node to another occurs within apredetermined time frame, although not necessarily in lock-step. Theorchestration of data transfer reduces or eliminates data contention inthe NUMA system.

While the instruction-execution table 200 of FIG. 2 is illustrated as aring for purposes of clarity in description, it is understood that thering-shaped instruction-execution table 200 is a visual depiction of analgorithm stored in a memory device. For example, the memory device maystore data representing the different data partitions D0 to D7 and datarepresenting the different processing nodes N0 to N7, and a processormay store information regarding the data in each data partition D0 to D7that is associated with the different processing nodes N0 to N7. Theprocessor may update or change the association of the data partitions D0to D7 with the processing nodes N0 to N7 in a manner that may berepresented by the instruction-execution table 200 of FIG. 2.

FIG. 3 illustrates an instruction execution table 300 according to oneembodiment, in which the data partitions correspond to data and theprocessing nodes correspond to particular threads running on particularprocessing nodes made up of processing circuitry. In the embodimentillustrated in FIG. 3, an outer ring 301 includes segments representingparticular threads running on particular processing nodes. For example,n0.t0 represents thread 0 executed by processing node 0 and n0.t1represents a thread 1 executed by the processing node 0. As illustratedby this figure, in some embodiments, a single socket or processing nodeexecutes multiple instruction threads, and in other embodiments eachsocket or processing node executes only one instruction thread.

The instruction execution table 300 also includes an inner ring 302including segments representing different data partitions, where eachdata partition is a set of data. For example, n0.p0 represents datapartition 0, which may be stored in a memory device directly connectedto the processing node 0, and n0.p1 represents another data partition,data partition 1 located in the memory device directly connected to theprocessing node 0 for execution. As illustrated in FIG. 3, the number ofdata partitions corresponding to each processing node (or located in amemory device directly connected to the processing node) need not be thesame. For example, processing node 0 (n0) is provided with two datapartitions, p0 and p1; processing node 1 (n1) is provided with two datapartitions, p0 and p1; processing node 2 (n2) is provided with threedata partitions, p0, p1 and p2; and processing node 3 (n3) is providedwith only one data partition, p0.

In operation, each data partition represented by the inner ring 302 isassociated with a thread of the outer ring 301, and the data of therespective partition is transmitted to the thread indicated by the outerring 301 to be processed. In particular, each data partition of theinner ring 302 includes data sub-partitions to be transmitted todifferent threads in the NUMA system. As the inner ring 302 rotates withrespect to the outer ring 301, the data designated to be transmitted toeach thread of the outer ring 301 is transmitted to the respectivethread when the data partition of the inner ring 302 is aligned with therespective thread of the outer ring 301.

Then, the instruction execution table 300 is shifted to associate thedata partitions of the inner ring 302 with a different thread of theouter ring 301. The data sub-partitions in the partitions of the innerring 302 that are designated to be executed by the newly-associatedthreads are transmitted to the newly-associated threads to be processed.The process is repeated until each data sub-partition is transmitted toa respective thread, and then new data partitions are provided in theinner ring 302 to be transmitted to the threads of the outer ring 301.

In one embodiment, the data partitions of the inner ring 302 includeonly operand data, or data that is to be processed by the threads of theouter ring 301. In another embodiment, the data partitions include bothoperand data and state information of a source thread. In other words,in one embodiment, each source thread processes a sub-partition of datadesignated to be processed by the source thread. Then, each sourcethread transmits the remaining sub-partitions and the state informationof the thread, including any completed and partially-completedcalculations, to a next thread according to the orchestration of thedata shuffle. The process is repeated until each sub-partition isprocessed, and new data partitions are provided in the inner ring 302for processing.

FIG. 4 illustrates a method of data-shifting in a NUMA device or systemaccording to an embodiment of the invention. In block 401, a pluralityof data partitions are associated with a plurality of processing nodesaccording to a first configuration of an instruction-execution table.

In block 402, sub-partitions of the data partitions are processed at theprocessing nodes according to the table. As discussed above, inembodiments of the invention, data partitions may include any segment ofinstructions and/or data.

In block 403, the instruction-execution table is shifted to associatethe plurality of data partitions with the plurality of processing nodesaccording to a different configuration than the first configuration. Inone embodiment, each data partition is associated with a differentprocessing node than in the first configuration of theinstruction-execution table.

In block 404, sub-partitions of the plurality of data partitions areprocessed at the corresponding processing nodes indicated by theinstruction-execution table. The process of shifting theinstruction-execution table and processing the data partitions repeatsuntil each data partition has been executed by each processing node.

FIG. 5 illustrates a block diagram of a computer system 500 according toan embodiment of the present disclosure. The methods described hereincan be implemented in hardware, software, or a combination thereof. Inan exemplary embodiment, the methods described herein are implemented inhardware as part of the microprocessor of a special or general-purposedigital computer, such as a personal computer, workstation,minicomputer, or mainframe computer. The system 500 therefore mayinclude general-purpose computer or mainframe 501.

In an exemplary embodiment, in terms of hardware architecture, as shownin FIG. 5, the computer 501 includes a one or more processors 505,memory 510 coupled to a memory controller 515, and one or more inputand/or output (I/O) devices 540, 545 (or peripherals) that arecommunicatively coupled via a local input/output controller 535. Theinput/output controller 535 can be, for example, one or more buses orother wired or wireless connections, as is known in the art. Theinput/output controller 535 may have additional elements, which areomitted for simplicity in description, such as controllers, buffers(caches), drivers, repeaters, and receivers, to enable communications.Further, the local interface may include address, control, and/orinterconnects to enable appropriate communications among theaforementioned components. The input/output controller 535 may accessthe output devices 540 and 545.

The processor 505 is a hardware device for executing software,particularly that stored in storage 520, such as cache storage, ormemory 510. The processor 505 can be any custom made or commerciallyavailable processor, a central processing unit (CPU), an auxiliaryprocessor among several processors associated with the computer 501, asemiconductor based microprocessor (in the form of a microchip or chipset), a macroprocessor, or generally any device for executinginstructions.

The memory 510 can include any one or combination of volatile memoryelements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM,etc.)) and nonvolatile memory elements (e.g., ROM, erasable programmableread only memory (EPROM), electronically erasable programmable read onlymemory (EEPROM), programmable read only memory (PROM), tape, compactdisc read only memory (CD-ROM), disk, diskette, cartridge, cassette orthe like, etc.). Moreover, the memory 510 may incorporate electronic,magnetic, optical, and/or other types of storage media. Note that thememory 510 can have a distributed architecture, where various componentsare situated remote from one another, but can be accessed by theprocessor 505.

The instructions in memory 510 may include one or more separateprograms, each of which comprises an ordered listing of executableinstructions for implementing logical functions. In the example of FIG.5, the instructions in the memory 510 include a suitable operatingsystem (O/S) 511. The operating system 511 essentially controls theexecution of other computer programs and provides scheduling,input-output control, file and data management, memory management, andcommunication control and related services.

In an exemplary embodiment, a conventional keyboard 550 and mouse 555can be coupled to the input/output controller 535. Other output devicessuch as the I/O devices 540, 545 may include input devices, for example,but not limited to a printer, a scanner, microphone, and the like.Finally, the I/O devices 540, 545 may further include devices thatcommunicate both inputs and outputs, for instance but not limited to, anetwork interface card (NIC) or modulator/demodulator (for accessingother files, devices, systems, or a network), a radio frequency (RF) orother transceiver, a telephonic interface, a bridge, a router, and thelike. The system 500 can further include a display controller 525coupled to a display 530. In an exemplary embodiment, the system 500 canfurther include a network interface 560 for coupling to a network 565.The network 565 can be any type of network, such as an IP-based networkfor communication between the computer 501 and any external server,client and the like via a broadband connection, an optical fibernetwork, or any other type of network.

The network 565 transmits and receives data between the computer 501 andexternal systems. In an exemplary embodiment, network 565 can be amanaged IP network administered by a service provider. The network 565may be implemented in a wireless fashion, e.g., using wireless protocolsand technologies, such as WiFi, WiMax, etc. The network 565 can also bea packet-switched network such as a local area network, wide areanetwork, metropolitan area network, Internet network, or other similartype of network environment. The network 565 may be a fixed wirelessnetwork, a wireless local area network (LAN), a wireless wide areanetwork (WAN) a personal area network (PAN), a virtual private network(VPN), intranet or other suitable network system and includes equipmentfor receiving and transmitting signals.

When the computer 501 is in operation, the processor 505 is configuredto execute instructions stored within the memory 510, to communicatedata to and from the memory 510, and to generally control operations ofthe computer 501 pursuant to the instructions.

In an exemplary embodiment, the methods of orchestrated data shifting ina NUMA device or system described herein can be implemented with any ora combination of the following technologies, which are each well knownin the art: a discrete logic circuit(s) having logic gates forimplementing logic functions upon data signals, an application specificintegrated circuit (ASIC) having appropriate combinational logic gates,a programmable gate array(s) (PGA), a field programmable gate array(FPGA), etc.

In embodiments of the present disclosure, the processor 505 includesmultiple processing nodes, such as multiple processors and/or multipleprocessor cores. In addition, the memory 510 includes multiple localmemory devices, such that each separate processing node is directlyconnected to at least one local memory via an interconnect andindirectly connected to at least one other local memory via anotherprocessing node. The processes of orchestrated data shuffling ofinstructions and/or non-instruction data may be performed by theprocessor 505.

As described above, embodiments can be embodied in the form ofcomputer-implemented processes and apparatuses for practicing thoseprocesses. An embodiment may include a computer program product 600 asdepicted in FIG. 6 on a computer readable/usable medium 602 withcomputer program code logic 604 containing instructions embodied intangible and non-transitory media as an article of manufacture.Exemplary articles of manufacture for computer readable/usable medium602 may include floppy diskettes, CD-ROMs, hard drives, universal serialbus (USB) flash drives, or any other computer-readable storage medium,wherein, when the computer program code logic 604 is loaded into andexecuted by a computer, the computer becomes an apparatus for practicingthe embodiments. Embodiments include computer program code logic 604,for example, whether stored in a storage medium, loaded into and/orexecuted by a computer, or transmitted over some transmission medium,such as over electrical wiring or cabling, through fiber optics, or viaelectromagnetic radiation, wherein, when the computer program code logic604 is loaded into and executed by a computer, the computer becomes anapparatus for practicing the embodiments. When implemented on ageneral-purpose microprocessor, the computer program code logic 604segments configure the microprocessor to create specific logic circuits.

As will be appreciated by one skilled in the art, aspects of the presentdisclosure may be embodied as a system, method or computer programproduct. Accordingly, aspects of the present disclosure may take theform of an entirely hardware embodiment, a software embodiment(including firmware, resident software, micro-code, etc.) executed inhardware, or an embodiment combining software and hardware aspects.Furthermore, aspects of the present disclosure may take the form of acomputer program product embodied in one or more computer readablemedium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may beutilized. The computer readable medium may be a computer readable signalmedium or a computer readable storage medium. A computer readablestorage medium may be, for example, but not limited to, an electronic,magnetic, optical, electromagnetic, infrared, or semiconductor system,apparatus, or device, or any suitable combination of the foregoing. Morespecific examples (a non-exhaustive list) of the computer readablestorage medium would include the following: an electrical connectionhaving one or more wires, a portable computer diskette, a hard disk, arandom access memory (RAM), a read-only memory (ROM), an erasableprogrammable read-only memory (EPROM or Flash memory), an optical fiber,a portable compact disc read-only memory (CD-ROM), an optical storagedevice, a magnetic storage device, or any suitable combination of theforegoing. In the context of this document, a computer readable storagemedium may be any tangible medium that can contain, or store a programfor use by or in connection with an instruction execution system,apparatus, or device.

Program code embodied on a computer readable medium may be transmittedusing any appropriate medium, including but not limited to wireless,wireline, optical fiber cable, RF, etc., or any suitable combination ofthe foregoing.

Computer program code for carrying out operations for aspects of thepresent disclosure may be written in any combination of one or moreprogramming languages, including an object oriented programming languagesuch as Java, Smalltalk, C++ or the like and conventional proceduralprogramming languages, such as the “C” programming language or similarprogramming languages. The program code may execute entirely on theuser's computer, partly on the user's computer, as a stand-alonesoftware package, partly on the user's computer and partly on a remotecomputer or entirely on the remote computer or server. In the latterscenario, the remote computer may be connected to the user's computerthrough any type of network, including a local area network (LAN) or awide area network (WAN), or the connection may be made to an externalcomputer (for example, through the Internet using an Internet ServiceProvider).

Aspects of the present disclosure are described above with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of thepresent disclosure. It will be understood that each block of theflowchart illustrations and/or block diagrams, and combinations ofblocks in the flowchart illustrations and/or block diagrams, can beimplemented by computer program instructions. These computer programinstructions may be provided to a processor of a general purposecomputer, special purpose computer, or other programmable dataprocessing apparatus to produce a machine, such that the instructions,which execute via the processor of the computer or other programmabledata processing apparatus, create means for implementing thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

These computer program instructions may also be stored in a computerreadable medium that can direct a computer, other programmable dataprocessing apparatus, or other devices to function in a particularmanner, such that the instructions stored in the computer readablemedium produce an article of manufacture including instructions whichimplement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer program instructions may also be loaded onto a computer,other programmable data processing apparatus, or other devices to causea series of operational steps to be performed on the computer, otherprogrammable apparatus or other devices to produce a computerimplemented process such that the instructions which execute on thecomputer or other programmable apparatus provide processes forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousembodiments of the present disclosure. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder, depending upon the functionality involved. It will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of blocks in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

The terminology used herein is for the purpose of describing particularembodiments only and is not intended to be limiting of the invention tothe particular embodiments described. As used herein, the singular forms“a”, “an” and “the” are intended to include the plural forms as well,unless the context clearly indicates otherwise. It will be furtherunderstood that the terms “comprises” and/or “comprising,” when used inthis specification, specify the presence of stated features, integers,steps, operations, elements, and/or components, but do not preclude thepresence or addition of one more other features, integers, steps,operations, element components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of allmeans or step plus function elements in the claims below are intended toinclude any structure, material, or act for performing the function incombination with other claimed elements as specifically claimed. Thedescription of the present disclosure has been presented for purposes ofillustration and description, but is not intended to be exhaustive orlimited to the disclosed embodiments. Many modifications and variationswill be apparent to those of ordinary skill in the art without departingfrom the scope and spirit of the embodiments of the present disclosure.

While preferred embodiments have been described above, it will beunderstood that those skilled in the art, both now and in the future,may make various improvements and enhancements which fall within thescope of the claims which follow.

What is claimed is:
 1. A method of orchestrated shuffling of data in anon-uniform memory access device that includes a plurality of processingnodes, the method comprising: running an application on a plurality ofthreads executing on the plurality of processing nodes, wherein runningthe application includes dividing data on each thread into partitionsaccording to a target thread on which the data is to be processed;identifying, by the threads, data to be shuffled from source threadsrunning on source processing nodes among the processing nodes to targetthreads running on target processing nodes among the processing nodes;generating a plan for orchestrating shuffling of the data among the aplurality of memory devices associated with the plurality of processingnodes, the plan including utilizing a data-shifting table to identify anorder in which the data partitions are to be transferred from the sourcethreads of the source processing nodes to the target threads of thetarget processing nodes; shuffling the data among the plurality ofmemory devices associated with the plurality of processing nodes basedon the plan by transmitting data partitions from the plurality of sourcethreads to the plurality of target threads according to thedata-shifting table; shifting the data-shifting table to associate eachsource thread with a different target thread; and transmitting anotherset of data partitions from the plurality of source threads to theplurality of target threads based on shifting the data-shifting table,wherein the plan for orchestrating the shuffling of data corresponds toa first ring including separate segments for each separate datapartition and a second ring located inside the first ring includingseparate segments for each separate processing node, and shifting thedata-shifting table includes rotating the first ring with respect to thesecond ring.
 2. The method of claim 1, wherein the processing nodes areconnected to each other by interconnects, and the plan includessimultaneously transmitting data over different interconnects to aplurality of different target processing nodes from a plurality ofdifferent source processing nodes.
 3. The method of claim 1, wherein thedata is transmitted simultaneously among the plurality of the processingnodes.
 4. The method of claim 1, wherein the data includes operand dataand operational state data of the source threads.
 5. The method of claim1, wherein at least two of the processing nodes are connected toseparate local memory devices and to each other, such that eachprocessing node is capable of accessing data from a first local memorydevice via a direct interconnect and is capable of accessing data from asecond local memory device via another processing node.
 6. Anon-transitory computer-readable medium having stored therein aninstruction-execution table that defines an association of a pluralityof data partitions with a plurality of processing nodes, thenon-transitory computer-readable medium including instructions that,when executed by one or more processors, controls the one or moreprocessors to perform a method of orchestrated data shuffling, themethod comprising: running an application on a plurality of threadsexecuting on the plurality of processing nodes, wherein running theapplication includes dividing data on each thread into partitionsaccording to a target thread on which the data is to be processed;identifying, by the threads, data to be shuffled from source threadsrunning on source processing nodes among the processing nodes to targetthreads running on target processing nodes among the processing nodes;generating a plan for orchestrating shuffling of the data among the aplurality of memory devices associated with the plurality of processingnodes, the plan including utilizing a data-shifting table to identify anorder in which the data partitions are to be transferred from the sourcethreads of the source processing nodes to the target threads of thetarget processing nodes; shuffling the data among the plurality ofmemory devices associated with the plurality of processing nodes basedon the plan by transmitting data partitions from the plurality of sourcethreads to the plurality of target threads according to thedata-shifting table; shifting the data-shifting table to associate eachsource thread with a different target thread; and transmitting anotherset of data partitions from the plurality of source threads to theplurality of target threads based on shifting the data-shifting table,wherein the plan for orchestrating the shuffling of data corresponds toa first ring including separate segments for each separate datapartition and a second ring located inside the first ring includingseparate segments for each separate processing node, and shifting thedata-shifting table includes rotating the first ring with respect to thesecond ring.
 7. The non-transitory computer-readable medium of claim 6,wherein the processing nodes are connected to each other byinterconnects, and the plan includes simultaneously transmitting dataover different interconnects to a plurality of different targetprocessing nodes from a plurality of different source processing nodes.8. The non-transitory computer-readable medium of claim 6, wherein thedata is transmitted simultaneously among the plurality of the processingnodes.
 9. The non-transitory computer-readable medium of claim 6,wherein the data includes operand data and operational state data of thesource threads.
 10. The non-transitory computer-readable medium of claim6, wherein at least two of the processing nodes are connected toseparate local memory devices and to each other, such that eachprocessing node is capable of accessing data from a first local memorydevice via a direct interconnect and is capable of accessing data from asecond local memory device via another processing node.
 11. Anon-uniform memory access system, comprising: a plurality of processingnodes including processing circuitry to execute instructions; aplurality of local memory modules, at least one local memory moduleconnected directly to at least one first processing node, and the atleast one local memory module connected to at least one secondprocessing node only indirectly via the at least one first processingnode, wherein the plurality of processing nodes is configured perform adata-shuffling process, comprising: running an application on aplurality of threads executing on the plurality of processing nodes,wherein running the application includes dividing the data on eachthread into partitions according to a target thread on which the data isto be processed; identifying, by the threads, data to be shuffled fromsource threads running on source processing nodes among the processingnodes to target threads running on target processing nodes among theprocessing nodes; generating a plan for orchestrating the shuffling ofthe data among the a plurality of memory devices associated with theplurality of processing nodes, the plan including utilizing adata-shifting table to identify an order in which the data partitionsare to be transferred from the source threads of the source processingnodes to the target threads of the target processing nodes; shufflingthe data among the plurality of memory devices associated with theplurality of processing nodes based on the plan by transmitting datapartitions from the plurality of source threads to the plurality oftarget threads according to the data-shifting table; shifting thedata-shifting table to associate each source thread with a differenttarget thread; and transmitting another set of data partitions from theplurality of source threads to the plurality of target threads based onshifting the data-shifting table, wherein the plan for orchestrating theshuffling of data corresponds to a first ring including separatesegments for each separate data partition and a second ring locatedinside the first ring including separate segments for each separateprocessing node, and shifting the data-shifting table includes rotatingthe first ring with respect to the second ring.
 12. The system of claim11, wherein the processing nodes are connected to each other byinterconnects, and the plan includes simultaneously transmitting dataover different interconnects to a plurality of different targetprocessing nodes from a plurality of different source processing nodes.13. The system of claim 11, wherein the data is transmittedsimultaneously among the plurality of the processing nodes.
 14. Thesystem of claim 11, wherein the data includes operand data andoperational state data of the source threads.
 15. The system of claim11, wherein at least two of the processing nodes are connected toseparate local memory devices and to each other, such that eachprocessing node is capable of accessing data from a first local memorydevice via a direct interconnect and is capable of accessing data from asecond local memory device via another processing node.